package com.youaishujuhui.devops.web.domain.manage;

import java.util.Date;
import java.util.List;
import java.util.Set;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.EL;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.ManyMany;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Prev;
import org.nutz.dao.entity.annotation.Table;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Table("t_sys_user")
@Getter
@Setter
@ToString
public class SysUser{

	@Id
    private int uId;

    @Name
    private String userName;

    @Column
    @Prev(els = @EL("now()"))
    private Date createTime;
    
    @ManyMany(relation = "t_user_role", from = "uId", to = "roleId")
    private List<SysRole> roles;
    
    
    //允许访问的所有URI
    private Set<String> resourceUris;
}
